import instance from '@/utils/axios'

const getBanners = () => {
  return instance({
    url:'/banner',
    method:'get'
  })
}

const likemusic = () => {
  return instance({
    url:'/personalized',
    method:'get'
  })
}

// 跟单分类
const gedanmusic = () => {
  return instance({
    url:'/playlist/highquality/tags',
    method:'get'
  })
}

// 每日推荐新音乐
const eachSong = () => {
  return instance({
    url:'/top/playlist?limit=12',
    method:'get'
  })
}

const remenSong = (id) => {
  return instance({
    url:'/artist/top/song',
    method:'get',
    params:id
  })
}

// 查看登入状态
const isLogin = () => {
  return instance({
    url:'/login/status',
    method:'get'
  })
}

// 精品跟单
const goodSongList = () => {
  return instance({
    url:'/top/playlist/highquality',
    method:'get'
  })
}

// 跟单详情动态
const songXiangqing = (id) => {
  return instance({
    url:'/playlist/detail',
    method:'get',
    params:id
  })
}

// 歌单评论
const songListComment = (id) => {
  return instance({
    url:'/comment/playlist',
    method:'get',
    params:id
  })
}

export {getBanners,likemusic,gedanmusic,eachSong,remenSong,isLogin,goodSongList,songXiangqing,songListComment}
